 <?php
          
 $ins= utf8_decode($_GET['investigador']);
 $con=mysqli_connect("192.168.1.10","srojas","anemona") or die("Failed to connect with database!!!!");
 mysqli_select_db( $con,"hermes2");
 $sth = mysqli_query($con,"select st.hindex as hindex,st.gindex as gindex from  ifcweb_investigadores.perfiles as p join hermes2.stat_inv as st on p.id=st.id_inv where p.nombre='$ins';");
 while($r = mysqli_fetch_assoc($sth)) {
        $hindex=$r['hindex'];
        $gindex=$r['gindex'];
}
mysqli_close($con);
echo "hindex=$hindex"." "."gindex=$gindex";

?>
               

